package com.anjbo.service.loan.impl;

import com.anjbo.bean.loan.ChangLoanDto;
import com.anjbo.dao.app.loan.ChangLoanMapper;
import com.anjbo.service.loan.ChangLoanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2017/6/29.
 */

@Service("changLoanService")
public class ChangLoanServiceImpl implements ChangLoanService{

    @Autowired
    private ChangLoanMapper changLoanMapper;


    @Override
    public int deleteByPrimaryKey(Integer id) {
        return changLoanMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ChangLoanDto record) {
        return changLoanMapper.insert(record);
    }

    @Override
    public int insertSelective(ChangLoanDto record) {
        return changLoanMapper.insertSelective(record);
    }

    @Override
    public ChangLoanDto selectByPrimaryKey(Integer id) {
        return changLoanMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ChangLoanDto record) {
        return changLoanMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ChangLoanDto record) {
        return changLoanMapper.updateByPrimaryKey(record);
    }

    @Override
    public int submitTimesToday(String uid) {
        return changLoanMapper.submitTimesToday(uid);
    }
}
